package com.hedl.studyandjava8.java8_2unit.java8_25.service.impl;

import com.hedl.studyandjava8.java8_2unit.java8_25.entity.Apple;
import com.hedl.studyandjava8.java8_2unit.java8_25.service.AppleFormatter;

/**
 * @author Big Watermelon
 * @description
 * @date 2024/02/19/17:58
 */
public class AppleSimpleFormatterImpl implements AppleFormatter {
    @Override
    public String accept(Apple apple) {
        return "An apple of " + apple.getWeight() + "g";
    }
}
